package com.arcvideo.acsplayer.utils;

import android.util.Log;

@SuppressWarnings("unused")
public class LogUtil {
	private static final int LOGLEVEL_NO = 0;
	private static final int LOGLEVEL_ERROR = 1;
	private static final int LOGLEVEL_WARNING = 2;
	private static final int LOGLEVEL_INFO = 3;
	private static final int LOGLEVEL_DEBUG = 4;
	private static final int LOGLEVEL_VERBOSE = 5;
	private static final int LOGLEVEL_ALL = 6;

	private static final int logLevel = LOGLEVEL_ALL;

	public static void e(final String tag, final String msg) {
		if (logLevel >= LOGLEVEL_ERROR)
			Log.e(tag, msg);
	}

	public static void d(final String tag, final String msg) {
		if (logLevel >= LOGLEVEL_DEBUG)
			Log.d(tag, msg);
	}

	public static void w(final String tag, final String msg) {
		if (logLevel >= LOGLEVEL_WARNING)
			Log.w(tag, msg);
	}

	public static void v(final String tag, final String msg) {
		if (logLevel >= LOGLEVEL_VERBOSE)
			Log.v(tag, msg);
	}

	public static void i(final String tag, final String msg) {
		if (logLevel >= LOGLEVEL_INFO)
			Log.i(tag, msg);
	}
}
